package com.yanqu.road.entity.activity.fivehero.config;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.utils.string.StringUtils;

import java.util.ArrayList;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_s_activity_five_hero_event")
public class FiveHeroEventConfig {

    @FieldTypeAnnotation(desc = "活动ID", select = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "事件id")
    private int id;
    @FieldTypeAnnotation(desc = "事件类型")
    private int type;
    @FieldTypeAnnotation(desc = "事件参数配置")
    private String parameter;
    @FieldTypeAnnotation(desc = "权重")
    private int weight;
    @FieldTypeAnnotation(desc = "图标")
    private int icon;
    @FieldTypeAnnotation(desc = "奖励列表")
    private String rewards;
    @FieldTypeAnnotation(desc = "desc")
    private String desc;
    @FieldTypeAnnotation(desc = "击杀奖励")
    private String killRewards;
    @FieldTypeAnnotation(desc = "连胜奖励")
    private String winRewards;
    @FieldTypeAnnotation(desc = "损血奖励（按损血百分比给奖励")
    private String bloodLossRewards;
    @FieldTypeAnnotation(desc = "des")
    private String des;
    @FieldTypeAnnotation(desc = "")
    private int quality;
    private String failRewards;

    private List<Integer> parameterList = new ArrayList<>();

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getParameter() {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter;
        parameterList = StringUtils.stringToIntegerList(parameter,";");
    }

    public List<Integer> getParameterList() {
        return parameterList;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public String getRewards() {
        return rewards;
    }

    public void setRewards(String rewards) {
        this.rewards = rewards;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public void setParameterList(List<Integer> parameterList) {
        this.parameterList = parameterList;
    }

    public String getKillRewards() {
        return killRewards;
    }

    public void setKillRewards(String killRewards) {
        this.killRewards = killRewards;
    }

    public String getWinRewards() {
        return winRewards;
    }

    public void setWinRewards(String winRewards) {
        this.winRewards = winRewards;
    }

    public String getBloodLossRewards() {
        return bloodLossRewards;
    }

    public void setBloodLossRewards(String bloodLossRewards) {
        this.bloodLossRewards = bloodLossRewards;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public int getQuality() {
        return quality;
    }

    public void setQuality(int quality) {
        this.quality = quality;
    }

    public String getFailRewards() {
        return failRewards;
    }

    public void setFailRewards(String failRewards) {
        this.failRewards = failRewards;
    }
}
